@extends('layouts.app')
@section('title','我的消息通知')

@section('content')
    <div class="row">
        <div class="offset-md-1 col-md-10">
            <div class="card">
                <div class="card-header ">
                    <h4 class="pt-2">
                        <i class="fa-regular fa-bell"></i>
                        我的消息通知
                    </h4>
                </div>
                <div class="card-body">
                    @if(count($notifications) > 0)
                        <ul class="list-group">
                            @foreach($notifications as $notification)
                                @include('notifications.types._'.Str::snake(class_basename($notification->type)))
                            @endforeach
                        </ul>
                    @else
                        @include('shared._no_data',['info'=>'暂无新的信息通知'])
                    @endif
                </div>
            </div>
            @include('shared._pages',['list'=>$notifications])
        </div>

    </div>
@stop
